package com.yizn.learn;

import com.yizn.learn.bean.User;
import com.yizn.learn.mapper.UserMapper;
import com.yizn.learn.sqlSession.MySQLSession;

import java.util.concurrent.CountDownLatch;
import java.util.concurrent.atomic.AtomicInteger;
import java.util.concurrent.locks.ReentrantLock;

/**
 * 最终的测试类
 *
 * @author yisl
 * @create 2019-05-28 15:25
 */
public class TestMybatis {

    public static void main(String[] args) throws ClassNotFoundException {
        //MySQLSession sqlsession=new MySQLSession();
        //UserMapper mapper = sqlsession.getMapper(UserMapper.class);
        //User user = mapper.getUserById("1");
        //System.out.println(user);
        //System.out.println(user);
        //System.out.println(user);
        //System.out.println("2");
        //System.out.println("1");
        //System.out.println("3");
        //System.out.println("4");
        //System.out.println("5");

        AtomicInteger integer = new AtomicInteger();
        integer.set(1);

        ReentrantLock lock = new ReentrantLock();
        ReentrantLock lock1 = new ReentrantLock();
        ReentrantLock lock3 = new ReentrantLock();
        ReentrantLock lock4 = new ReentrantLock();
        ReentrantLock lock5 = new ReentrantLock();
        //CountDownLatch

        System.out.println("类名"+TestMybatis.class);
        System.out.println("类名"+new TestMybatis().getClass());
        System.out.println("类名1"+Class.forName("com.yizn.learn.TestMybatis"));

    }
}
